const webpack = require('webpack');
const path = require('path');

const baseConfig = require('./webpack.base');


const config = baseConfig('development');
config.devtool = 'cheap-module-eval-source-map';
config.plugins.push(
  new webpack.HotModuleReplacementPlugin(),
  new webpack.NoEmitOnErrorsPlugin(),
);
config.devServer = {
  contentBase: path.join(__dirname, 'dist'),
  public: 'http://localhost:3000',
  hot: true,
  hotOnly: true,
  compress: true,
  port: 3000
};
module.exports = config;
